package com.cause.entiy.user;

public class Function {
    private Integer fid;

    private String fname;

    private String fidname;

    private String fmethod;

    private String ficon;

    private Integer fdesc;

    private String fbz;

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFidname() {
        return fidname;
    }

    public void setFidname(String fidname) {
        this.fidname = fidname;
    }

    public String getFmethod() {
        return fmethod;
    }

    public void setFmethod(String fmethod) {
        this.fmethod = fmethod;
    }

    public String getFicon() {
        return ficon;
    }

    public void setFicon(String ficon) {
        this.ficon = ficon;
    }

    public Integer getFdesc() {
        return fdesc;
    }

    public void setFdesc(Integer fdesc) {
        this.fdesc = fdesc;
    }

    public String getFbz() {
        return fbz;
    }

    public void setFbz(String fbz) {
        this.fbz = fbz;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Function other = (Function) that;
        return (this.getFid() == null ? other.getFid() == null : this.getFid().equals(other.getFid()))
            && (this.getFname() == null ? other.getFname() == null : this.getFname().equals(other.getFname()))
            && (this.getFidname() == null ? other.getFidname() == null : this.getFidname().equals(other.getFidname()))
            && (this.getFmethod() == null ? other.getFmethod() == null : this.getFmethod().equals(other.getFmethod()))
            && (this.getFicon() == null ? other.getFicon() == null : this.getFicon().equals(other.getFicon()))
            && (this.getFdesc() == null ? other.getFdesc() == null : this.getFdesc().equals(other.getFdesc()))
            && (this.getFbz() == null ? other.getFbz() == null : this.getFbz().equals(other.getFbz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFid() == null) ? 0 : getFid().hashCode());
        result = prime * result + ((getFname() == null) ? 0 : getFname().hashCode());
        result = prime * result + ((getFidname() == null) ? 0 : getFidname().hashCode());
        result = prime * result + ((getFmethod() == null) ? 0 : getFmethod().hashCode());
        result = prime * result + ((getFicon() == null) ? 0 : getFicon().hashCode());
        result = prime * result + ((getFdesc() == null) ? 0 : getFdesc().hashCode());
        result = prime * result + ((getFbz() == null) ? 0 : getFbz().hashCode());
        return result;
    }
}